/// <remarks>
/// Config Class
/// This is a simple Configuration class using the Singleton pattern.
/// 
/// Author: Louis-Philippe Lebouthillier, Matricis Informatique Inc.
/// </remarks>

using System;
using System.Collections.Generic;
using System.Text;

namespace VcLib
{
    public sealed class Config
    {
        /// <summary>
        /// http://www.yoda.arachsys.com/csharp/singleton.html
        /// </summary>
        private static Config instance = null;
        private static readonly object padlock = new object();
        private static string serverName = null;
        
        public static Config Instance
        {
            get
            {
                lock (padlock)
                {
                    if (instance==null)
                    {
                        instance = new Config();
                        
                    }
                    return instance;
                }
            }
        }

        Config()
        {
        }

        public string ServerName
        {
            get
            {
                return serverName;
            }

            set
            {
                serverName = value;
            }
        }
    }
}
